package com.ask;

import com.ask.service.CarService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App3 {
    public static void main(String[] args)
    {
        ApplicationContext ctx =
                new ClassPathXmlApplicationContext("applicationContext.xml");
        CarService CarService = (CarService) ctx.getBean("carService");
        CarService.addCar();
    }
}
